package com.lkj.t3;

public class MyThread2 extends Thread{

    private Object lock;

    public MyThread2(Object lock) {
        this.lock = lock;
    }

    @Override
    public void run() {
        super.run();

        synchronized (lock) {
            System.out.println("start notify time= "+System.currentTimeMillis());
            lock.notify();
            System.out.println("end notify time="+System.currentTimeMillis());
        }
    }
}
